 @extends('master')

@section('title')
Scool|Ads
@endsection

@section('content')
 <!-- right-top -->
    <div class="right-info" id="scrol3">
      <div class="right-info-wrapper" id="right-info-wrapper">
        <div class="height_16"></div>
        <!-- height_16 -->
        
        <div class="height_22"></div>
        <!-- height_22 -->
        <div class="table-list-info" id="zohoid-info">
          <div class="panel panel-default">
            <div class="panel-heading"> 新建Ads </div>
            <!-- panel-heading -->
            <div class="panel-body panel-body-pad">
              <form id='from'>
                <div class="form-group">
                  <label for="name_en" class="snow">Ads Name:</label>
                  <input type="text" class="form-control form-control-inline" id="name" name="name" placeholder="广告名称">
                </div>

                 <div class="form-group">
                  <label for="name_en" class="snow">Ads Type:</label>
                  <div>
                  <select name='type'>
                      <option value='0'>请选择</option>
                      <option value ="ads">Ads</option>
                      <option value ="topic">Topic</option>
                      <option value="activity">Activity</option>
                      <option value="info_share">Info_share</option>
                  </select>
                  </div>
                </div>

                <div class="form-group">
                  <label for="name_cn" class="snow">Ads Url:</label>
                  <input type="text" class="form-control form-control-inline" id="url" name="url" placeholder="广告链接">
                 </div>
                <div class="form-group">
                  <label for="country_en" class="snow">Ads Image:</label>
                   <!-- <input name="image" type="file" id="image" >  -->
                    <button id="uploadBtn" class="btn btn-large btn-primary">Choose File</button>
                    <input type='hidden' name='path' id='relPath'>
                    <div id="progressOuter" class="progress progress-striped active" style="display:none;">
                    <div id="progressBar" class="progress-bar progress-bar-success"  role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
                    </div>
                  </div>
                     <div id="msgBox">
              </div>
                </div>

      

                 <div class="form-group">
                  <label for="country_cn" class="snow">Ads Weight:</label>
                 <input type="text" class="form-control form-control-inline" id="country_cn" name="weight" placeholder="排序权重">
                </div>
                
              </form>
            </div>
            <!-- panel-body -->
            <ul class="list-group">
              <li class="list-group-item">
                <button type="submit" class="btn btn-default btn-pad" id="submit"> OK </button>
              </li>
            </ul>
          </div>
          <!-- panel --> 
        </div>
        <!-- table-list-info --> 
        
      </div>
      <!-- right-info-wrapper --> 
    </div>
    <!-- right-info --> 


    @endsection

@section('js')
<script type="text/javascript"  src="/js/SimpleAjaxUploader.js"></script>

<script type="text/javascript"  src="/js/ads/create.js"></script>
@endsection